import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:求最小公倍数
 * User: wangxin
 * Date: 2024-07-24
 * Time: 15:38
 */
public class test2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别

        int a = in.nextInt();
        int b = in.nextInt();

        long lcm = (a * b) / gad(a,b);
        System.out.println(lcm);}

    public static int gad(int a,int b){
        if(b == 0){
            return a;
        }
        return gad(b,a % b);
    }
}
